<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="{% static 'img/sb.png' %}" type="img" />
    <link rel="stylesheet" href="{% static 'plug-in/css/bootstrap.min.css' %}">
    <title>echohye</title>
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand" href="/index/">手机信息门户</a>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="/login/">管理员登录</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#"><span class="glyphicon glyphicon-off" aria-hidden="true"></span> {{request.session.info.username}}</a></li>
                    {% if request.session.info.username %}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                            aria-expanded="false">设置 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">个人资料</a></li>
                            <li><a href="#">我的信息</a></li>
                            <li><a href="#">个性化</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="/admin/reset/">重置密码</a> </li>
                            <li><a href="/admin/logout/">注销</a></li>
                        </ul>
                    </li>
                    {% endif %}
                </ul>
            </div>
        </div>
    </nav>
    <div class="container">
   <div class="panel panel-default">
    <div class="panel-body">
        <div class="row">
            {% for item in brands_list%}
                {% if brand == item %}
                    <div class="col-md-2 table-bordered btn btn-success btn-xs"><a style="color:yellow;" href="/phone/{{item}}/">{{item}}</a></div>
                {% else %}
                    <div class="col-md-2 table-bordered"><a href="/phone/{{item}}/">{{item}}</a></div>
                {% endif %}
            {% endfor %}
        </div>
    </div>
</div>
</div>
{% block content %}{% endblock %}
</body>
<script src="{% static 'plug-in/js/jquery-3.6.0.min.js' %}"></script>
<script src="{% static 'plug-in/js/bootstrap.min.js' %}"></script>
</html>